package com.ibm.law.service.system;

import com.ibm.law.domain.Category;
import com.ibm.law.domain.Template;
import com.ibm.law.service.DataAccessService;

public class TemplateService extends DataAccessService<Template> {

	public java.util.List<Template> findTempalteByCategory(Category category) {
		String jpql="select o from Template o where o.categoryId=?";
		return entityManager.createQuery(jpql, Template.class).setParameter(1, category.getId()).getResultList();
	}

}
